﻿@using KL.Store.Core;
@{
    ViewBag.Title = "Hesabım";
    ViewBag.hasSub = "true";
    Layout = "~/Views/Shared/" + Parameters.Layout + ".cshtml";
    var columnCssClass = "col-xs-12 col-sm-12 col-md-3 col-lg-2 left first last";
    var contentCssClass = "col-xs-12 col-sm-12 col-md-9 col-lg-10 right";
    if (Parameters.Theme == "DK" || Parameters.Theme == "EO")
    {
        columnCssClass = "col-xs-12 col-sm-12 col-md-4 col-lg-3 left first last";
        contentCssClass = "col-xs-12 col-sm-12 col-md-8 col-lg-9 right";
    }
    else if (Parameters.Theme == "WU")
    {
        columnCssClass = "col-xs-12 col-sm-12 col-md-4 col-lg-3 left";
        contentCssClass = "col-xs-12 col-sm-12 col-md-8 col-lg-9 right";
    }
}

@if (Parameters.Theme != "HA")
{
    <div class="breadcrumb col-xs-12 col-sm-12 col-md-12 col-lg-12">
        <div class="bcBorder"></div>
        <div class="bcLinks">
            <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                <a href="/" itemprop="url">
                    <span itemprop="title">Anasayfa</span>
                </a>›
            </div>
            <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
                <a href="/Account/Index" itemprop="url">
                    <span itemprop="title">Hesabım</span>
                </a>
            </div>
        </div>
        <div class="bcBorder"></div>
    </div>
    <div class="clearfix"></div>
}
<div class="@columnCssClass">
    @if (Parameters.ShowCategoryOnAccountPages)
    {
        Html.RenderAction("Categories", "Partials");
    }
    @{ Html.RenderAction("Account", "Partials"); }
    @{ Html.RenderAction("Information", "Partials"); }
</div>
<div class="@contentCssClass">
    <div class="content">
        <h1>Hesabım</h1>
        <h3>Hesap Bilgilerim</h3>
        <ul class="account-settings col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <li class="col-xs-6 col-sm-6 col-md-4 col-lg-3">
                <div class="outer">
                    <div class="inner">
                        <a href="/Account/Edit">
                            <i class="fa fa-user fa-4x"></i>
                            <br />
                            <div class="account-settings-title">
                                <span>Hesap Bilgilerini Güncelleyin</span>
                            </div>
                        </a>
                    </div>
                </div>
            </li>
            <li class="col-xs-6 col-sm-6 col-md-4 col-lg-3">
                <div class="outer">
                    <div class="inner">
                        <a href="/Account/ChangePassword">
                            <i class="fa fa-key fa-4x"></i>
                            <br />
                            <div class="account-settings-title">
                                <span>Şifrenizi Güncelleyin</span>
                            </div>
                        </a>
                    </div>
                </div>
            </li>
            <li class="col-xs-6 col-sm-6 col-md-4 col-lg-3">
                <div class="outer">
                    <div class="inner">
                        <a href="/Address/Index">
                            <i class="fa fa-home fa-4x"></i>
                            <br />
                            <div class="account-settings-title">
                                <span>Adreslerinizi Güncelleyin</span>
                            </div>
                        </a>
                    </div>
                </div>
            </li>
            @if (Parameters.UseWishList)
            {
                <li class="col-xs-6 col-sm-6 col-md-4 col-lg-3">
                    <div class="outer">
                        <div class="inner">
                            <a href="/WishLists/Index">
                                <i class="fa fa-gift fa-4x"></i>
                                <br />
                                <div class="account-settings-title">
                                    <span>Listelerinizi Güncelleyin</span>
                                </div>
                            </a>
                        </div>
                    </div>
                </li>
                <li class="col-xs-6 col-sm-6 col-md-4 col-lg-3">
                    <div class="outer">
                        <div class="inner">
                            <a href="/Contact/List">
                                <i class="fa fa-users fa-4x"></i>
                                <br />
                                <div class="account-settings-title">
                                    <span>Arkadaş Listenizi Güncelleyin</span>
                                </div>
                            </a>
                        </div>
                    </div>
                </li>
            }
            @if (Parameters.UsePaymentBond)
            {
                <li class="col-xs-6 col-sm-6 col-md-4 col-lg-3">
                    <div class="outer">
                        <div class="inner">
                            <a href="/Account/Guarantors">
                                <i class="fa fa-users fa-4x"></i>
                                <br />
                                <div class="account-settings-title">
                                    <span>Kefiller</span>
                                </div>
                            </a>
                        </div>
                    </div>
                </li>
            }
        </ul>
        <h3>Siparişlerim</h3>
        <ul class="account-settings col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <li class="col-xs-6 col-sm-6 col-md-6 col-lg-3">
                <div class="outer">
                    <div class="inner">
                        <a href="/Order/Index">
                            <i class="fa fa-shopping-cart fa-4x"></i>
                            <br />
                            <div class="account-settings-title">
                                <span>Sipariş Geçmişim</span>
                            </div>
                        </a>
                    </div>
                </div>
            </li>
            @if (Parameters.UseVoucher)
            { 
                <li class="col-xs-6 col-sm-6 col-md-6 col-lg-3">
                    <div class="outer">
                        <div class="inner">
                            <a href="/Voucher/Index">
                                <i class="fa fa-gift fa-4x"></i>
                                <br />
                                <div class="account-settings-title">
                                    <span>Hediye Çeklerim</span>
                                </div>
                            </a>
                        </div>
                    </div>
                </li>
            }
        </ul>
    </div>
</div>

@if (Parameters.Theme == "JJ")
{
    <script>
        $(document).ready(function ()
        {
            if ($(window).width() < 980)
            {
                $(".breadcrumb").parent().attr("class", $(".breadcrumb").parent().attr("class") + " first last");
                $(".account-settings li").attr("class", $(".account-settings li").attr("class") + " first last");
            }
        });
    </script>
}
@if (Parameters.WebSiteTrackingCode != "")
{ 
    <script type="text/javascript">

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', '@Parameters.WebSiteTrackingCode']);
        _gaq.push(['_setDomainName', '@Parameters.WebSiteTrackingDomainName']);
        _gaq.push(['_setAllowLinker', true]);
        _gaq.push(['_trackPageview']);

        (function ()
        {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    </script>
}